package com.sc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sc.domain.Announce;
import com.sc.dto.AnnounceDTO;
import com.sc.dto.AnnouncePageDTO;
import com.sc.result.PageResult;

public interface AnnounceService extends IService<Announce> {


    /**
     * 添加公告
     * @param announceDTO 前端传入数据
     */
    void saveAnnounce(AnnounceDTO announceDTO);

    /**
     * 修改公告
     * @param announceDTO 前端传入数据
     */
    void updateAnnounce(AnnounceDTO announceDTO);


    /**
     * 分页查询活动
     * @param announcePageDTO 前端传入数据
     * @return 分页结果
     */
    PageResult<Announce> pageQuery(AnnouncePageDTO announcePageDTO);
}
